home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
programs
/
archive
/
xmash_v1.0
/
file_format.doc
< prev
next >
Wrap
Text File
|
1995-02-13
|
1KB
|
36 lines
xmash's file format is as follows
bytes 0-2 MSH (file format ID, this is how you find out if a file is an
XMASH file or not)
bytes 2-END are made up of seperate blocks defined below
(byte numbers in blocks below are relative the the start of the block itself)
Text/Advert Block
=================
0 Text Block ID Character is "B" for banner
1-2 Dummy data, not used for the moment, should be 0's
3-6 Compressed Block Length (so from this point skip this many bytes forward to find the next block)
6-END XPK Compressed Text
File_ID Block
=============
same as text only ID charater is "F" for FILE_ID
Track Data Block
================
0 ID Byte for Block is "D" for DATA
1 TRACK number (not cylinder number)
2 TRACKS (so range on disk would be TRACK to TRACK+TRACKS
3-6 Compressed BlockLength. Uncompress this and write data to disk..
7-END XPK Compressed Track Data
As you can see all blocks are made up in moreorless the same format.
if you design your own blocks then keep tothe format BLOCKID,2 bytes MISC,
4 Bytes Length, rest of info.. so that other programs can skip unknown
blocks correctly..